package cn.codergege.shiro.service.impl;

import java.util.Date;

import org.apache.shiro.authz.annotation.RequiresRoles;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import cn.codergege.shiro.service.ShiroService;

@Service("shiroService")
public class ShiroServiceImpl implements ShiroService {
	private final Logger log = LoggerFactory.getLogger(ShiroServiceImpl.class);

	@Override
	@RequiresRoles({"admin"})
	public void testMethod() {
		log.info("ShiroServiceImpl#testMethod() time: " + new Date());
	}
}
